Optimal Path Planning For A Uav Using Gpops-Ii